@import "./_default";
@import "./_minix";
// list.vue
.content {
    padding-top: 50px;
}
.coins-list {
    padding: 1rem;
    .coins-item {
        padding: 0.8rem 1rem;
        @include display(flex, space-between, $align: center);
        margin-bottom: 1rem;
        .item-title {
            font-size: 1.4rem;
            color: rgba(84, 91, 113, 1);
            font-weight: 550;
        }
        .item-right {
            @include display(flex, space-between, $align: center);
            font-size: 1.2rem;
            color: rgba(77, 79, 81, 1);
            position: relative;
            padding-right: 1.5rem;
            .hasCollection {
                @include position(absolute, -2px, 0);
            }
            span {
                margin-right: 0.5rem;
            }
        }
    }
}
.search-wrap {
    padding: 0 1rem;
    @include display(flex, space-between, $align: center);
    @include size(3rem);
    margin: 1rem 0;
    .collect-search {
        padding: 0.3rem 1rem;
        border: 1px solid rgba(232, 232, 232, 1);
        @include size( 100%);
        @include display(flex, space-between, $align: center);
        border-radius: 1px;
        span {
            color: rgba(77, 79, 81, 1);
        }
    }
    .form-select {
        width: 10rem;
        .form-group {
            margin-top: 0;
            border: 1px solid #e8e8e8;
            .zx-select {
                height: 3rem;
            }
        }
    }
}
.search-input-wrap {
    position: relative;
    padding: 0.3rem 0.6rem;
    border-radius: 1px;
    background: $c-white;
    border: 1px solid rgba(232, 232, 232, 1);
    @include size(100%, 3rem);
    @include display(flex);
    @include transition(width ease 0.8s);
    &.focus {
        width: 10rem;
        .search-input {
            padding-left: 0.5rem;
            width: 8rem;
            box-sizing: border-box;
        }
    }
    .search-input {
        background: none;
        @include size(100%, 0);
        @include transition(width ease 0.8s);
        .input {
            background: none;
            border: none;
            @include size(100%, 100%);
        }
    }
    .search-icon {
        height: 2rem;
        width: 2rem;
        display: block;
        @include backgroundImg('search-icon.png', no-repeat, center 3px);
    }
}
.icon {
    @include size(1.5rem, 1.5rem);
    display: inline-block;
    vertical-align: bottom;
    margin-right: 0.3rem;
    &.collect-empty {
        @include backgroundImg('collect_empty.png', no-repeat, center center);
    }
    &.collect-full {
        @include backgroundImg('collect_full.png', no-repeat, center center);
    }
}
.coins-filter {
    position: relative;
    padding: 1rem;
    @include display(flex, space-between, $align: center);
    h3 {
        font-size: 1.6rem;
        color: rgba(84, 91, 113, 1);
        font-weight: 550;
    }
    .coins-select {
        border: 1px solid $borderColor;
        padding: 0.3rem 3rem 0.3rem 0.8rem;
        width: 9rem;
        position: relative;
        &::after {
            content: "";
            display: block;
            @include position(absolute, 0.8rem, 1rem);
            @include size(8px, 8px);
            border-right: 1px solid $borderColor;
            border-top: 1px solid $borderColor;
            transform: rotate(135deg)
        }
        .coins-select-item {
            &.buy {
                color: $c-warn;
                .icon {
                    @include backgroundImg('buy-in-icon.png', no-repeat, center left);
                }
            }
            &.sell {
                color: $c-success;
                .icon {
                    @include backgroundImg('sell-out-icon.png', no-repeat, center left);
                }
            }
            position: relative;
            @include display(flex, $align:center);
            .icon {
                @include size(2rem, 2rem);
                display: inline-block;
                background: $c-warn;
            }
        }
        .filter-select-position {
            @include position(absolute, 2.6rem, 0, $l: -1px);
            @include size($w: 9rem);
            padding: 0.5rem 0;
            border: 1px solid $borderColor;
            border-top: none;
            background: $c-white;
            .coins-select-item {
                padding: 0.3rem 0.8rem;
            }
        }
    }
}
// detail.vue
.padding {
    padding: 1rem;
}
.coins-detail {
    display: flex;
    &.column {
        flex-direction: column;
    }
    .coins-form {
        padding: 0 1rem;
        @include display(flex, space-between, column);
        @include flex(1);
        .form-title {
            font-size: 1.6rem;
            color: rgba(84, 91, 113, 1);
        }
        .form-text {
            color: rgba(151, 151, 151, 1);
        }
        .form-enable {
            display: flex;
            justify-content: space-between;
            .enable-text {
                color: rgba(81, 101, 255, 1);
            }
        }
        .form-submit {
            width: 100%;
            .form-input-submit {
                padding: 0.8rem 0;
                border-radius: 2px;
                font-size: 1.4rem;
                width: 100%;
                display: block;
                text-align: center;
                color: #fff;
                &.sell {
                    background: $c-success;
                }
                &.buy {
                    background: $c-warn;
                }
            }
        }
        .form-input {
            position: relative;
            .input-text {
                @include position(absolute, 0, 10px);
                @include size(100%);
                line-height: 3rem;
                color: #9797a4;
            }
            .input {
                line-height: 3rem;
                padding-left: 0.5rem;
                font-size: 1.2rem;
                @include size(3rem, 100%);
                border: 1px solid rgba(77, 79, 81, 1);
                &::placeholder {
                    text-align: center;
                    color: rgba(151, 151, 151, 1);
                }
            }
        }
    }
    .last-deal {
        @include size(3rem, 100%);
        line-height: 3rem;
        font-size: 1.4rem;
        padding-left: 1rem;
        color: $c-white;
        background: $defaultColor;
        margin-bottom: 0.3rem;
    }
    .coins-detail-list {
        @include flex(1);
        padding: 0 1rem;
        .detail-list {
            &.max12 {
                @include size(12rem, $maxH: 12rem);
                overflow-y: scroll;
            }
        }
        .detail-item {
            @include display(flex);
            padding: 0.1rem 0;
            font-size: 1rem;
            color: rgba(84, 91, 113, 0.089);
            span {
                &:nth-of-type(1) {
                    @include flex(2);
                }
                @include flex(1);
            }
            &.title {
                margin-bottom: 0.2rem;
                color: rgba(151, 151, 151, 1);
            }
        }
        .detial-price {
            @include size(3rem, $lineH: 3rem);
            text-align: center;
            color: rgba(255, 69, 84, 1);
            border: 1px dotted $borderColor;
            border-radius: 2px;
            margin: 0.8rem 0;
        }
    }
}